<?php defined('SYSPATH') or die('No direct script access.');
 
class Model_Dniwe extends ORM {
	protected $_table_name = 'dniwe';

	public function getLast($postfix) {
		return DB::select(array('title'.$postfix, 'title'), array('text'.$postfix, 'text'))
			->from($this->_table_name)
			->order_by('id', 'DESC')
			->as_object()
			->execute();
	}
}